<form id="auto-data-form" action="notice/saveOrUpdate" class="form-horizontal bv-form" method="post" role="form">
	<div style="display: none;">
		<input id="model.id" name="model.id" value="#(model.id)" placeholder="主键" type="hidden" />
	</div>
	<div class="nav-tabs-custom">
		<ul class="nav nav-tabs">
			<li class="active"><a href="#tab_1" data-toggle="tab" aria-expanded="true">基本信息</a></li>
            <li class=""><a id="atta_tab" href="#tab_2" data-toggle="tab" aria-expanded="false">公告附件</a></li>
		</ul>
		<div class="tab-content">
            <div class="tab-pane active" id="tab_1">
				<div class="form-group">
					<label for="model.title" class="col-sm-2 control-label">标题</label>
					<div class="col-sm-10">
						<input id="model.title" name="model.title" value="#(model.title)" placeholder="标题" class="form-control input-md" required maxlength="256"/>
					</div>
				</div>
				
				<div class="form-group">
					<label for="model.type" class="col-sm-2 control-label">类型</label>
					<div class="col-sm-4">
						#@dict_select("model.type",model.type,"NOTICE_TYPE",false,"类型","required")
					</div>
					<label for="model.state" class="col-sm-2 control-label">状态</label>
					<div class="col-sm-4">
						#@dict_select("model.state",model.state,"DATA_STATE",false,"状态","required")
					</div>
				</div>
				
				<div class="form-group">
					<label for="model.src" class="col-sm-2 control-label">来源</label>
					<div class="col-sm-4">
						<input id="model.src" name="model.src" value="#(model.src)" placeholder="来源" class="form-control input-md" maxlength="256"/>
					</div>
					<label for="model.issure" class="col-sm-2 control-label">签发人</label>
					<div class="col-sm-4">
						<input id="model.issure" name="model.issure" value="#(model.issure)" placeholder="签发人" class="form-control input-md" maxlength="64"/>
					</div>
				</div>
				
				<div class="form-group">
					<label for="model.stime" class="col-sm-2 control-label">签发日期</label>
					<div class="col-sm-4">
						<input id="model.stime" name="model.stime" value="#date(model.stime,"yyyy-MM-dd")" placeholder="签发日期" class="form-control input-md date" datetimepicker="yyyy-mm-dd" required maxlength="19"/>
					</div>
					<label for="model.etime" class="col-sm-2 control-label">到期日期</label>
					<div class="col-sm-4">
						<input id="model.etime" name="model.etime" value="#date(model.etime,"yyyy-MM-dd")" placeholder="到期日期" class="form-control input-md date" datetimepicker="yyyy-mm-dd" required maxlength="19"/>
					</div>
				</div>
				
				<div class="form-group">
					<label for="model.content" class="col-sm-2 control-label">公告内容</label>
					<div class="col-sm-10">
						<textarea id="model.content" name="model.content" placeholder="公告内容" class="form-control input-md auto-editor" maxlength="65535">#(model.content)</textarea>
					</div>
				</div>
            </div>
            <div class="tab-pane" id="tab_2">
				<div class="form-group">
					<div class="col-sm-12">
						<input id="notice_atta" name="notice_atta" data-title="公告附件" data-data-id="#(model.id)" data-image="false" data-file-num-limit="5" data-callback="" class="auto-file"/>
					</div>
				</div>	
            </div>
        </div>      
	</div>
</form>
<script type="text/javascript">
	$(document).ready(function() {
		$("#atta_tab").click(function(){//刷新选择文件按钮的大小
			refreshUploader($($(this).attr("href")));
		});  
	});
</script>